<%--
  Created by IntelliJ IDEA.
  User: alper yucer
  Date: Dec 27, 2010
  Time: 12:07:28 AM
  To change this template use File | Settings | File Templates.
--%>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Search</title>
<link type="text/css" rel="stylesheet" href="/bob-web/CSS/1.css" />
<link type="text/css" rel="stylesheet" href="/bob-web/CSS/2.css" />
<link type="text/css" rel="stylesheet" href="/bob-web/CSS/3.css" />
<link type="text/css" rel="stylesheet" href="/bob-web/CSS/4.css" />
<link type="text/css" rel="stylesheet" href="/bob-web/CSS/5.css" />
<link type="text/css" rel="stylesheet" href="/bob-web/CSS/6.css" />
<link type="text/css" rel="stylesheet" href="/bob-web/CSS/7.css" />
<link rel="stylesheet" type="text/css" href="/bob-web/CSS/3c-lcrc-static-pp-layout.css" />
<link rel="stylesheet" type="text/css" href="/bob-web/CSS/3c-lcrc-static-pp-presentation.css" />
<link type="text/css" rel="stylesheet" href="/bob-web/CSS/SeOrtA9JbJu.css"/>
<link rel="stylesheet" type="text/css" href="/bob-web/CSS/2FEu-VTjHxG.css" />

<script src="/bob-web/CSS/jquery-1.2.2.pack.js" type="text/javascript"></script>
<link href="/bob-web/CSS/facebox.css" media="screen" rel="stylesheet" type="text/css" />
<script src="/bob-web/CSS/facebox.js" type="text/javascript"></script>

<script type="text/javascript">
    jQuery(document).ready(function($) {
      $('a[rel*=facebox]').facebox()
    })
</script>


</head>

<body>

<!-- left column -->
<div id="lh-col"><br />
  <%@ include file="/WEB-INF/jsp/leftScreen.jsp" %>
</div>
<!-- end of left column -->
<!-- center column -->
<div id="c-col" align="left" >
<h2>Search Results</h2>
    <c:choose>
    <c:when test="${fn:length(model.resultList)==0}"><br />There are no approval waiting users</c:when>
    <c:otherwise>
<table width="90%" border="0" cellpadding="5">
    <tr>
        <th align="left">
            E-Mail
        </th>
        <th align="left">
            Name
        </th>
        <th>
            Surname
        </th>
        <th>
            Self Definition
        </th>
        <th>
            User Type
        </th>
        <th align="center">
            Set As Admin:
        </th>
        <th align="left">
              Status:
        </th>
        <th align="left">
              &nbsp;
        </th>
    </tr>
    <c:forEach items="${model.resultList}" var="result">
    <form action="/bob-web/service/approveUsers.htm" method="POST">

        <tr>
            <td>
                <a href="/bob-web/service/profilePage.htm?wantedUserId=${result.userId}">${result.username}</a>
            </td>
            <td>
                <a href="/bob-web/service/profilePage.htm?wantedUserId=${result.userId}">${result.name}</a>
            </td>
            <td>
               <a href="/bob-web/service/profilePage.htm?wantedUserId=${result.userId}">${result.surname}</a>
            </td>
            <td>
               <a href="/bob-web/service/profilePage.htm?wantedUserId=${result.userId}">${result.selfDefinition}</a>
            </td>
            <td>
               <a href="/bob-web/service/profilePage.htm?wantedUserId=${result.userId}">${result.authority.userType}</a>
            </td>
            <td>
               <input type="checkbox" name="setAdmin" value="${result.userId}">
            </td>
            <td>
                <input type="radio" name="result" value="accept" /> Accept<br />
                <input type="radio" name="result" value="reject" /> Reject<br />
               <input type="hidden" name="requestedUserId" value="${result.userId}">
                 
            </td>


            <td>
                   <input type="submit">
             </td>
            </tr>

        </tr>

           </form>
    </c:forEach>
</table>
    </c:otherwise>
    </c:choose>
</div>
<!-- end of center column -->
<!-- right column -->
<div id="rh-col"> <a href="/bob-web/service/homePage.htm"><img border="0" src="/bob-web/Images/logo.png" alt="BookOfBoun" width="180" height="100" /></a>
  <%@ include file="/WEB-INF/jsp/rightScreen.jsp" %>
</div>
<!-- end of right column -->

</body>


</html>